import Vue from 'vue'
import App from './App'
import api from './api'
import util from './common/util'
import store from './store'
import share from './common/share.js'
Vue.mixin(share)

Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$util = util


const userId='';
const logionstate = 1; 
  export default
  {
    userId//用户登录的ID
	,
	logionstate//用户登录状态(1是未登录2是登录)
  }
  


const app = new Vue({
	store,
    ...App
})

Vue.prototype.$http=function(url){
	return uni.request({
		url:"http://localhost:8089/"+url
	})
}

Vue.prototype.$menu=function(url){
	return uni.request({
		url:"http://localhost:8089/"+url
	})
}
Vue.prototype.$order=function(url){
	return uni.request({
		url:"http://localhost:8088/"+url
	})
}
app.$mount()
